export type PagelistRequest = { aid: number } | { bvid: string };

export interface PagelistResponse {
  code: number;
  message: string;
  ttl: number;
  data: {
    cid: number;
  }[];
}

interface PlayurlParams {
  cid: number;
  qn?: number;
  fnval?: number;
  platform?: string;
  high_quality?: number;
}

export type PlayurRequest = ({ avid: number } | { bvid: string }) &
  PlayurlParams;

export interface PlayurlResponse {
  code: number;
  message: string;
  ttl: number;
  data: {
    durl: {
      length: number;
      size: number;
      url: string;
    }[];
  };
}
